<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>曼巴精神，虽走尤荣</title>
    <link rel="stylesheet" href="../css/swiper.min.css">
    <style>
        .swiper-container {
            width: 50%;
            margin: 0 auto;
        }
		h1{
			text-align: center;
			background-image: linear-gradient(to right, red , yellow);
		}
    </style>
</head>
<body>
	<div class="swiper-container">
		<h1>曼巴精神，虽走尤荣</h1>
	    <div class="swiper-wrapper">
	        <div class="swiper-slide"><img src="../img/11.jpg" alt="" width="100%"></div>
	        <div class="swiper-slide"><img src="../img/22.jpg" alt="" width="100%"></div>
	        <div class="swiper-slide"><img src="../img/33.jpg" alt="" width="100%"></div>
	    </div>
	    <div class="swiper-pagination"></div>
	    <div class="swiper-button-prev"></div>
	    <div class="swiper-button-next"></div>
	    <div class="swiper-scrollbar"></div>
	</div>
    <script src="../js/jquery-3.4.1.js"></script>
    <script src="../js/swiper.min.js"></script>
    <script>
        let swiper= new Swiper ('.swiper-container', {
                direction: 'horizontal',
                loop: true,
                autoplay: { delay: 3000 },
                pagination: {
                    el: '.swiper-pagination'
                },
                navigation: {
                    nextEl: '.swiper-button-next',
                    prevEl: '.swiper-button-prev'
                },
                scrollbar: {
                    el: '.swiper-scrollbar',
                    hide: true,
                    draggable: false,
                    snapOnRelease: true,
                    dragSize: 200,
                }
            });
	</script>
</body>

</html>
